import request from '@/utils/request'

export function summaryList(params, data) {
  return request({
    url: '/data/summaryList',
    method: 'post',
    params,
    data
  })
}
export function summarizeByHospital(params, data) {
  return request({
    url: '/data/onePatientHospitalDetails',
    method: 'post',
    params,
    data
  })
}
export function summarizeByDrugName(params, data) {
  return request({
    url: '/data/onePatientDrugDetails',
    method: 'post',
    params,
    data
  })
}
export function summarizeByPurchase(params, data) {
  return request({
    url: '/data/onePatientDetails',
    method: 'post',
    params,
    data
  })
}
export function summarizeHospital(params, data) {
  return request({
    url: '/data/oneHospitalDetails',
    method: 'post',
    params,
    data
  })
}
export function summarizeDrug(params, data) {
  return request({
    url: '/data/oneDrugDetails',
    method: 'post',
    params,
    data
  })
}
export function summaryDownload(data) {
  return request({
    url: '/data/summaryDownload',
    method: 'post',
    data,
    responseType: 'blob'
  })
}

